/**
 * 
 */
package com.kahweh.ngphoto.bean;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

/**
 * @author Michael
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class KProperty {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	@Persistent
	private String section;
	@Persistent
	private String name;
	@Persistent
	private String type;
	@Persistent
	private String value;

	/**
	 * Constructor
	 */
	public KProperty(String secName, String valueName, String valueType, String value) {
		this.section = secName;
		this.name = valueName;
		this.type = valueType;
		this.value = value;
	}

	public long getLong() {
		//TODO: 
		return 0L;
	}

	public Date getDate() {
		//TODO:
		return null;
	}
	
	public String getString() {
		return value;
	}

	public String getSection() {
		return section;
	}

	public void setSection(String section) {
		this.section = section;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public Key getKey() {
		return key;
	}

}
